package cn.youfule.dp.prototype;

public class Client {

	public static void main(String[] args) throws CloneNotSupportedException {
		Resume re = new Resume();
		re.setAge(16);
		re.setHobby(new String[]{"a","b"});
		
		Resume rec = (Resume) re.clone();
		rec.setAge(18);
		String[] hobby = rec.getHobby();
		hobby[0] = "c";
		rec.setHobby(hobby);
		//rec.setHobby(new String[] {"c","d"});
		
		System.out.println(re);
		System.out.println(rec);
	}
}
